@extends('backend::common.common_right')
@section('content')
    <style>
        span{
            margin-right: 20px;
        }
    </style>
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <p>
                            <span>累计充值交易币人数：{{$user}}</span>
                            <span>累计VIP充值人数：{{$vipuser}}</span>
                            <span>累计充值金额：{{$money}}</span>
                            <span>人均充值：{{$avgmoney}}</span>
                        </p>
                    </div>

                    <div class="ibox-content">
                        <table class="table table-striped table-bordered table-hover " id="editable">
                            <thead>
                            <tr>
                                <th>日期</th>
                                <th>提现人数</th>
                                <th>vip充值人数</th>
                                <th>平均充值金额</th>
                                <th>总金额</th>
                            </tr>
                            </thead>
                            <tbody>
                            @foreach($lists as $k=>$v)
                                <tr class="gradeX">
                                    <td>{{$k}}</td>
                                    <td>{{$v['user']}}</td>
                                    <td>{{$v['vipuser'][1] or 0}}</td>
                                    <td>{{$v['avgmoney']}}</td>
                                    <td>{{$v['money']}}</td>
                                </tr>
                            @endforeach
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
@endsection

